package com.dt76.smallloanbackenduser.remote.afterloan;

import com.dt76.smallloanbackenduser.pojo.afterloan.SettlementCommitInfo;
import com.dt76.smallloanbackenduser.pojo.afterloan.SettlementQualification;
import com.dt76.smallloanbackenduser.utils.PageResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "smallloan-backend-service")
public interface SettlementRemote {

    @PostMapping(value = "/loanSettlement/getPageAll", consumes = "application/json")
    public PageResult getPageAll(@RequestBody SettlementQualification q, @RequestParam("page") Integer page, @RequestParam("size") Integer size) ;

    @PostMapping(value = "/loanSettlement/getCommitInfo", consumes = "application/json")
    public Integer getCommitInfo(@RequestBody SettlementCommitInfo q, @RequestParam("loanId") Integer loanId) ;

}
